package com.ejd.web.vo.genl;

import java.io.Serializable;


import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;

import javax.faces.application.FacesMessage;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.event.ActionEvent;
import javax.faces.event.FacesEvent;
import javax.faces.event.ValueChangeEvent;
import javax.faces.model.SelectItem;

import net.sf.cglib.beans.BeanCopier;
import javax.faces.component.UIComponent;
import javax.faces.component.UIViewRoot;
import javax.faces.component.UIData;
import javax.faces.context.FacesContext;

import com.ejd.service.IApplyService;
import com.ejd.service.ICategoryService;
import com.ejd.service.IProductUnitService;
import com.ejd.service.IShoesClassService;
import com.ejd.service.IStakeholderService;
import com.ejd.service.ISubCategoryService;
import com.ejd.utils.MessageFactory;
import com.ejd.utils.SpringFacesUtil;
import com.ejd.utils.UIComponentUtil;
import com.ejd.web.bo.impl.Apply;
import com.ejd.web.bo.impl.Category;
import com.ejd.web.bo.impl.Customer;
import com.ejd.web.bo.impl.Productunit;
import com.ejd.web.bo.impl.ShoesClass;
import com.ejd.web.bo.impl.Stakeholder;
import com.ejd.web.bo.impl.SubCategory;
import com.ejd.web.constant.EjdConstants;
import com.ejd.web.constant.ManageBeanConstants;
import com.ejd.web.constant.SpringBeanConstants;
import com.ejd.web.vo.common.CustomerVo;
import com.ejd.web.vo.genl.ExistShoesClassBean;
import com.ejd.web.vo.genl.ExistSubCategoryBean;

@ManagedBean(name="explainAndNoticePage")
@SessionScoped
public class ExplainAndNoticePageBean implements Serializable {

	private static final long serialVersionUID = 5054087821033164849L;
	private String viewTab;
	public String getViewTab() {
		return viewTab;
	}
	public void setViewTab(String viewTab) {
		this.viewTab = viewTab;
	}
	
	public ExplainAndNoticePageBean(){
		this.setViewTab(EjdConstants.EXPLAIN_AND_NOTICE_VIEW_TAB_PURCHASE);
		
	}
	public String selectExplainAndNoticeViewTab(){
		String explainAndNoticeViewTab = (String)SpringFacesUtil.getRequestParameter("explainAndNoticeViewTab");
		if (null != explainAndNoticeViewTab && !("".equals(explainAndNoticeViewTab))) {
			this.setViewTab(explainAndNoticeViewTab);
		} else {
			this.setViewTab(EjdConstants.EXPLAIN_AND_NOTICE_VIEW_TAB_PURCHASE);
		}
		return null;
	}
}
